<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">

<rich:popupPanel autosized="true" id="resetPasswordPopupPanel">
	<h:form id="resetPasswordForm">
		<h:panelGrid columns="3" width="60%" id="resetPasswordGrid">
			<h:outputText value="#{resourceBundle['user.admin.username']}:" />
			<h:outputText value="#{userModel.editedUser.username}"/>
			<h:outputText/>
		
			<h:outputText value="#{resourceBundle['user.admin.password']}:" />
			<h:inputSecret value="#{userModel.password}" id="password"
				label="#{resourceBundle['user.admin.password']}" size="60"
				autocomplete="off"
				tabindex="0">
				<f:validateRequired />
				<f:validateLength maximum="10" />
				<rich:validator />
			</h:inputSecret>
			<rich:message for="password" />

			<h:outputText
				value="#{resourceBundle['user.admin.password.confirm']}:" />
			<h:inputSecret value="#{userModel.confirmPassword}"
				id="confirmPassword"
				label="#{resourceBundle['user.admin.password.confirm']}" size="60"
				autocomplete="off"
				tabindex="1">
				<f:validateRequired />
				<f:validateLength maximum="10" />
				<rich:validator />
			</h:inputSecret>
			<rich:message for="confirmPassword" />
		</h:panelGrid>
		<br />
		<br />
		<a4j:commandButton value="#{resourceBundle['accept']}"
			action="confirmResetPassword"
			oncomplete="if (#{facesContext.maximumSeverity==null}) {#{rich:component('resetPasswordPopupPanel')}.hide();}"
			execute="resetPasswordForm"/>
		<a4j:commandButton value="#{resourceBundle['cancel']}"
			onclick="#{rich:component('resetPasswordPopupPanel')}.hide(); return false;" />
	</h:form>
</rich:popupPanel>
</html>